package com.camelot.boot.module.system.controller.admin.chatmessage1.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.math.BigDecimal;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - AI 聊天消息新增/修改 Request VO")
@Data
public class ChatMessage1SaveReqVO {

    private Long id;
    @Schema(description = "对话编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "18134")
    @NotNull(message = "对话编号不能为空")
    private Long conversationId;

    @Schema(description = "回复编号", example = "1642")
    private Long replyId;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "20315")
    @NotNull(message = "用户编号不能为空")
    private Long userId;

    @Schema(description = "角色编号", example = "13269")
    private Long roleId;

    @Schema(description = "消息类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "消息类型不能为空")
    private String type;

    @Schema(description = "模型标识", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "模型标识不能为空")
    private String model;

    @Schema(description = "模型编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "10683")
    @NotNull(message = "模型编号不能为空")
    private Long modelId;

    private Long companyId;

    private Long companyRequirementId;

    private BigDecimal score;

    private Integer employed;

    private Integer recommendInterview;

    private String systemPrompt;
    /**
     * 候选者姓名
     */
    private String candidateName;

    private String mobile;

    @Schema(description = "消息内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "消息内容不能为空")
    private String content;

    @Schema(description = "是否携带上下文", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否携带上下文不能为空")
    private Boolean useContext;

    @Schema(description = "段落编号数组")
    private String segmentIds;

}